import json

__author__ = 'Administrator'

x = [1, 'simple', 'list']
print(json.dumps(x))

f = open("C:\\Users\\Administrator\\Desktop\\pyTest.txt", "w+", encoding="utf8")

json.dump(x, f)

f.close()

f = open("C:\\Users\\Administrator\\Desktop\\pyTest.txt", "r+", encoding="utf8")
x = json.load(f)

print(x)
f.close()
